import datetime

def run_time(func):

    def new_func(*args, **args2):

        start_time = datetime.datetime.now()

        print('*'*20)
        print('Start time of {}: {}'.format(func.__name__, start_time.strftime('%Y-%m-%d %H:%M:%S')))
        
        back = func(*args, **args2)
        end_time = datetime.datetime.now()

        print('End time of {}: {}'.format(func.__name__, end_time.strftime('%Y-%m-%d %H:%M:%S')))
        print('*'*20)

        return back
    
    return new_func